import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Axios from '@/axios'
import VueCookies from "vue-cookies";
import VuePagination from 'vue-pagination'


Vue.config.productionTip = false;
Vue.use(VueCookies);
Vue.component('pagination',VuePagination)


//导入组件库
import ElementUI, {Table} from 'element-ui'
//导入组件相关样式
import 'element-ui/lib/theme-chalk/index.css'
import store from "@/store"
//配置Vue插件 将El安装到Vue上
Vue.use(ElementUI);

Vue.prototype.$http = new Axios()

//封装类
import TableData from "@/components/TableData.vue";

Vue.component("TableData", TableData);


Vue.prototype.$store = store;

let rootVue = new Vue({
  router,
  store,
  render: (h) => h(App),
});
rootVue.$http = new Axios();
window.$rootVue = rootVue;
rootVue.$mount("#app");



